package com.wanmait.heating.pojo;

import java.io.Serializable;
import java.util.Date;

public class Address implements Serializable {
    private Integer id;

    /**
	* 用户
	*/
    private Userinfo userinfo;

    /**
	* 街道
	*/
    private Street street;

    /**
	* 详细地址
	*/
    private String details;

    /**
	* 排序
	*/
    private Integer sort;

    /**
	* 1：默认 0：不是默认
	*/
    private Integer defaultes;

    /**
	* 上传时间
	*/
    private Date time;

    /**
	* 目前状态（1：可用 0：不可用）
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Userinfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }

    public Street getStreet() {
        return street;
    }

    public void setStreet(Street street) {
        this.street = street;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getDefaultes() {
        return defaultes;
    }

    public void setDefaultes(Integer defaultes) {
        this.defaultes = defaultes;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userinfoId=").append(userinfo.getId());
        sb.append(", streetId=").append(userinfo.getId());
        sb.append(", details=").append(details);
        sb.append(", sort=").append(sort);
        sb.append(", defaultes=").append(defaultes);
        sb.append(", time=").append(time);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}